﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using YAPL.Language.Ast;

namespace YAPL.Language.SourceParser.XML.NodeParsers {
	public abstract class XmlExpressionParser {
		private readonly XmlInputParser _parser;

		protected XmlExpressionParser(XmlInputParser parser) {
			_parser = parser;
		}

		public abstract Expression ParseNode(XElement node);

		public XmlInputParser Parser {
			get { return _parser; }
		}
	}
}
